package ebcs.database.mybatis.dao;

import ebcs.database.bean.BsUserNeedRel;
import ebcs.database.bean.BsUserNeedRelExample;
import ebcs.database.bean.RpUserReportBean;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BsUserNeedRelMapper {
	int deleteByExample(BsUserNeedRelExample example);
	
	int deleteUserNeedInfor(String rouid);

    int insert(BsUserNeedRel record);

    int insertSelective(BsUserNeedRel record);

    List<BsUserNeedRel> selectByExample(BsUserNeedRelExample example);

    int updateByExampleSelective(@Param("record") BsUserNeedRel record, @Param("example") BsUserNeedRelExample example);

    int updateByExample(@Param("record") BsUserNeedRel record, @Param("example") BsUserNeedRelExample example);
    
    int closeUserNeedRel(@Param("record") String rouid);
    
    int reStartUserNeedRel(@Param("record") String rouid);
    
     boolean deleteInfor(String needId);
     
     List<BsUserNeedRel> selectByNeedId(String needId);

	void updateReportStateByRouId(BsUserNeedRel bsUserNeedRel);
	
	List<BsUserNeedRel> selectByrouid(String rouid);
     
	void updatalProstate(String rouid);
	void updatahandlProstate (String rouid); 
	List<BsUserNeedRel> getAllUserneedGroup(String rouid);
	List<BsUserNeedRel> getPaname(String paraid);
	List<BsUserNeedRel> selectUserRemark(String rouid); 
}